<html>
<head>
   <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
   <style>
     a{margin:10px}
   </style>
</head>
<body>
   <div>
    	<div id="user-login-top" style="display:none">
    	    <img src="" />
        	<input type="text" id="user-name" value="" />
        	<input type="button" id="quit" value="退出" />
        	<input type="button" id="post" value="发帖" />
        </div>
        <div id="user-unlogin-top" style="display:none">
			<input type="button" id="login" value="登录" /> 
			<input type="button" id="regist" value="注册" /> 
		</div>
		
	</div>
	
	<table border="1" style="border-collapse: collapse;" id="post-list-tab">
		<tr id="headq">
			<th>title</th>
			<th>user_id</th>
			<th>create_time</th>
			<th>操作</th>
		</tr>
	</table>
	
	<div id="pageIt"></div>
       
		
	<div id="loginPage" style="display:none">
		用户:<input type="text" name="user_name" id="user_name" placeholder="user_name" /><br />  
		密码:<input type="password" name="user_password" id="user_password" placeholder="user_password" /><br />
	      验证码:<input type="text" id="identify" placeholder="identify"><br />    
	  点击更换  <span id="captcha_img"></span><br />
		    <input type="button" id="loginCommit" value="登录" />
	</div>
	
	<div id="registPage" style="display:none">
		用户:<input type="text" name="user_name" id="registuser_name" placeholder="user_name" /><br /> 
		密码:<input type="password" name="user_password" id="registuser_password" placeholder="user_password" /><br />
		    <input type="button" id="registCommit" value="确认" />
		    <form id="myForm">
		       <input type="file" name="image" id="file" />
		       <input type="hidden" name="imagepath" id="imagepath" />
		       <input type="hidden" name="thumbpath" id="thumbpath" />
		       <img src="" >
		    </form>
	</div>
	
	<div id="postPage" style="display:none">
	        <input type="hidden" name="user_id" id="user_id" value="{$user.id}" /><br /> 
   	           标题:<input type="text" name="title" id="post-title" value="" /><br /> 
                       内容:<input type="text" name="content" id="post-content" value="" /><br />     
   			<input type="button" id="postCommit" name="complete" value="完成" /><br />
	</div>
	
</body>
<span id="info"></span>
<p id="page"></p>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/postList.js"></script>
</html> 